// 弹出框
export const modal = (title, html) => {
    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        move: false,
        area: '800px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal1 = (title, html) => {
    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        move: false,
        area: '700px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal2= (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        move: false,
        area: '500px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};

// 消息提示
export const msg = (msg, fn) => {

    layer.msg(msg, {
        time: 1300
    }, fn || function () {});

};

// 错误提示
export const tips = (msg, elem) => {

    layer.tips(msg, elem, {
        tips: [1, '#f39c12'],
        time: 1300
    });

};

//询问框
export const confirm = (msg, title, fn) => {
    layer.confirm(msg, {
        title: title,
        btn: ['确定', '取消']
    }, fn || function () {});
};






